package cn.com.skbang.backend.user.dao;

import cn.com.skbang.backend.user.dao.impl.mapper.entity.Teacher;
import cn.com.skbang.backend.user.dao.impl.mapper.entity.TeacherExample;
import cn.com.skbang.backend.common.core.base.Page;

import java.util.List;

//TODO xupc LectureDao -> TeacherDao
public interface TeacherDao {
    int save(Teacher record);

    int deleteById(Long id);

    int updateById(Teacher record);

    Teacher getById(Long id);

    Page<Teacher> page(int pageCurrent, int pageSize, TeacherExample example);

    /**
     * 根据讲师名称查找讲师信息
     *
     * @param LecturerName
     * @return
     * @author WY
     */
    List<Teacher> getByLecturerName(String LecturerName);

    List<Teacher> listByStatusId(Integer statusId);

    /**
     * 根据讲师编号集合获取讲师信息
     *
     * @param lectureruserIds
     * @return
     */
    List<Teacher> listByIds(List<Long> ids);
}
